import Vue from 'vue'
import Router from 'vue-router'
import home from '@/components/home'
import user from '@/components/user/user'
import travel from '@/components/user/menuPages/travel'
import setting from '@/components/user/menuPages/setting'
import wallet from '@/components/user/menuPages/wallet'
import feedback from '@/components/user/menuPages/feedback'
Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
    path:'/',
    name:'home',
    component: home
    },
    {
      path:'/user',
      name:'user',
      component: user,
      children: [
        {
          path: '/user/travel',
          name: 'travel',
          component: travel
        },
        {
          path: '/user/setting',
          name: 'setting',
          component: setting
        },
        {
          path: '/user/wallet',
          name: 'wallet',
          component: wallet
        },
        {
          path: '/user/feedback',
          name: 'feedback',
          component: feedback
        }
      ]
    },
  
  ]
})
